// app/index.js

const Koa = require('koa')

// 1.引入koabody
const KoaBody = require('koa-body')
const userRouter =require('../router/user.route.js')
const app  = new Koa()

// use koabody
app.use(KoaBody())
app.use(userRouter.routes())

module.exports = app